<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>运营管理 - 权限</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gray-100">
    <div class="min-h-screen">
        <header class="bg-white shadow">
            <div class="max-w-7xl mx-auto py-6 px-4">
                <div class="flex justify-between items-center">
                    <h1 class="text-2xl font-bold text-gray-900">权限管理</h1>
                    <div class="flex space-x-4">
                        <button class="bg-green-600 text-white px-4 py-2 rounded-md">新增角色</button>
                    </div>
                </div>
            </div>
        </header>

        <main class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
            <div class="bg-white shadow rounded-lg p-6">
                <div class="mb-6 grid grid-cols-3 gap-4">
                    <div class="p-4 bg-blue-50 rounded-lg">
                        <div class="text-sm text-gray-600">系统角色</div>
                        <div class="text-2xl font-bold text-blue-600">4</div>
                        <div class="text-sm text-gray-500 mt-1">普通用户、推广员、成交员、运营人员</div>
                    </div>
                    <div class="p-4 bg-green-50 rounded-lg">
                        <div class="text-sm text-gray-600">权限模块</div>
                        <div class="text-2xl font-bold text-green-600">8</div>
                        <div class="text-sm text-gray-500 mt-1">订单、分销、内容、系统等</div>
                    </div>
                    <div class="p-4 bg-purple-50 rounded-lg">
                        <div class="text-sm text-gray-600">操作权限</div>
                        <div class="text-2xl font-bold text-purple-600">4</div>
                        <div class="text-sm text-gray-500 mt-1">增、删、改、查</div>
                    </div>
                </div>

                <div class="mb-6">
                    <div class="flex space-x-4 mb-4">
                        <button class="px-4 py-2 bg-blue-600 text-white rounded-md">角色管理</button>
                        <button class="px-4 py-2 bg-white border border-gray-300 rounded-md">权限配置</button>
                        <button class="px-4 py-2 bg-white border border-gray-300 rounded-md">操作日志</button>
                    </div>
                </div>

                <div class="mb-8">
                    <h2 class="text-lg font-bold mb-4">角色列表</h2>
                    <table class="min-w-full divide-y divide-gray-200">
                        <thead>
                            <tr>
                                <th class="px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">角色名称</th>
                                <th class="px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">角色描述</th>
                                <th class="px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">创建时间</th>
                                <th class="px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">状态</th>
                                <th class="px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">操作</th>
                            </tr>
                        </thead>
                        <tbody class="bg-white divide-y divide-gray-200">
                            <tr>
                                <td class="px-6 py-4 text-sm text-gray-900">系统管理员</td>
                                <td class="px-6 py-4 text-sm text-gray-500">系统最高权限管理员</td>
                                <td class="px-6 py-4 text-sm text-gray-500">2024-01-01</td>
                                <td class="px-6 py-4 text-sm">
                                    <span class="px-2 py-1 text-xs font-semibold text-green-600 bg-green-100 rounded-full">启用</span>
                                </td>
                                <td class="px-6 py-4 text-sm text-gray-500">
                                    <button class="text-blue-600 hover:text-blue-800 mr-3">编辑</button>
                                    <button class="text-red-600 hover:text-red-800">删除</button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>

                <div>
                    <h2 class="text-lg font-bold mb-4">权限配置</h2>
                    <div class="border rounded-lg p-4">
                        <div class="mb-4 pb-4 border-b">
                            <div class="font-bold mb-2">订单管理</div>
                            <div class="flex flex-wrap gap-4">
                                <label class="flex items-center">
                                    <input type="checkbox" class="form-checkbox h-4 w-4 text-blue-600">
                                    <span class="ml-2">查看订单</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" class="form-checkbox h-4 w-4 text-blue-600">
                                    <span class="ml-2">处理订单</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" class="form-checkbox h-4 w-4 text-blue-600">
                                    <span class="ml-2">导出订单</span>
                                </label>
                            </div>
                        </div>
                        <div class="mb-4 pb-4 border-b">
                            <div class="font-bold mb-2">分销管理</div>
                            <div class="flex flex-wrap gap-4">
                                <label class="flex items-center">
                                    <input type="checkbox" class="form-checkbox h-4 w-4 text-blue-600">
                                    <span class="ml-2">分销员管理</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" class="form-checkbox h-4 w-4 text-blue-600">
                                    <span class="ml-2">佣金管理</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" class="form-checkbox h-4 w-4 text-blue-600">
                                    <span class="ml-2">提现管理</span>
                                </label>
                            </div>
                        </div>
                        <div class="mb-4">
                            <div class="font-bold mb-2">内容管理</div>
                            <div class="flex flex-wrap gap-4">
                                <label class="flex items-center">
                                    <input type="checkbox" class="form-checkbox h-4 w-4 text-blue-600">
                                    <span class="ml-2">攻略管理</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" class="form-checkbox h-4 w-4 text-blue-600">
                                    <span class="ml-2">Banner管理</span>
                                </label>
                                <label class="flex items-center">
                                    <input type="checkbox" class="form-checkbox h-4 w-4 text-blue-600">
                                    <span class="ml-2">分类管理</span>
                                </label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>
</body>
</html>